(component
  (type $ty-foo:foo/i (;0;)
    (instance
      (type (;0;) (record (field "f" u8)))
      (export (;1;) "some-type" (type (eq 0)))
      (type (;2;) (func (result 1)))
      (export (;0;) "the-func" (func (type 2)))
    )
  )
  (import "foo:foo/i" (instance $foo:foo/i (;0;) (type $ty-foo:foo/i)))
  (alias export $foo:foo/i "some-type" (type $some-type (;1;)))
  (import "other-name" (type $other-name (;2;) (eq $some-type)))
  (core module $main (;0;)
    (type (;0;) (func (param i32 i64 i32)))
    (type (;1;) (func (param i32 i32 i32 i32) (result i32)))
    (type (;2;) (func (result i32)))
    (import "foo:foo/i" "the-func" (func (;0;) (type 2)))
    (memory (;0;) 0)
    (export "foo:foo/i#the-func" (func 1))
    (export "cabi_realloc" (func 2))
    (export "memory" (memory 0))
    (func (;1;) (type 2) (result i32)
      unreachable
    )
    (func (;2;) (type 1) (param i32 i32 i32 i32) (result i32)
      unreachable
    )
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
      (processed-by "my-fake-bindgen" "123.45")
    )
  )
  (type (;3;) (record (field "f" u8)))
  (alias export $foo:foo/i "the-func" (func $the-func (;0;)))
  (core func $the-func (;0;) (canon lower (func $the-func)))
  (core instance $foo:foo/i (;0;)
    (export "the-func" (func $the-func))
  )
  (core instance $main (;1;) (instantiate $main
      (with "foo:foo/i" (instance $foo:foo/i))
    )
  )
  (alias core export $main "memory" (core memory $memory (;0;)))
  (type (;4;) (func (result 3)))
  (alias core export $main "foo:foo/i#the-func" (core func $foo:foo/i#the-func (;1;)))
  (alias core export $main "cabi_realloc" (core func $cabi_realloc (;2;)))
  (func $"#func1 the-func" (@name "the-func") (;1;) (type 4) (canon lift (core func $foo:foo/i#the-func)))
  (component $foo:foo/i-shim-component (;0;)
    (type (;0;) (record (field "f" u8)))
    (import "import-type-some-type" (type (;1;) (eq 0)))
    (type (;2;) (func (result 1)))
    (import "import-func-the-func" (func (;0;) (type 2)))
    (type (;3;) (record (field "f" u8)))
    (export (;4;) "some-type" (type 3))
    (type (;5;) (func (result 4)))
    (export (;1;) "the-func" (func 0) (func (type 5)))
  )
  (instance $foo:foo/i-shim-instance (;1;) (instantiate $foo:foo/i-shim-component
      (with "import-func-the-func" (func $"#func1 the-func"))
      (with "import-type-some-type" (type 3))
    )
  )
  (export $"#instance2 foo:foo/i" (@name "foo:foo/i") (;2;) "foo:foo/i" (instance $foo:foo/i-shim-instance))
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)
